package kr.hkit.PowerJava.chapter07.work;
class Date {
	int year;
	int month;
	int day;
	void print1(int year, int month, int day) {
		this.year = year;
		this.month = month;
		this.day = day;
		System.out.println(this.year + "." + this.month + "." + this.day);
	}
	void print2(int year, int month, int day) {
		String emonth = null;
		this.year = year;
		this.month = month;
		this.day = day;
		switch (month) {
			case 1:	emonth = "January";break;case 2:emonth = "February";break;
			case 3:	emonth = "March";break;	case 4:	emonth = "April";	break;
			case 5: emonth = "May";	break; case 6:	emonth = "Jun";  	break;
			case 7:	emonth = "July";break;case 8:	emonth = "August";	break;
			case 9: emonth = "September";break;	case 10:emonth = "October";	break;
			case 11:emonth = "November";break;case 12:emonth = "December";	break;
		}System.out.println(emonth + "" + day + "," + year);
	}
}
public class Programming2 {
	public static void main(String[] args) {
		Date d1 = new Date();
		d1.print1(2014, 9, 17);
		d1.print2(2014, 9, 17);
	}
}
